package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the AUD_BUSQ_TITULO database table.
 * 
 */
@Entity
@Table(name="AUD_BUSQ_TITULO")
public class AudBusqTitulo implements Serializable {
	private static final long serialVersionUID = 1L;
	private long audBusqTituloId;
	private String nomapeRazsoc;
	private String numDoc;
	private String rol;
	private String tpoPersona;
	private TmDocIden tmDocIden;
	private Transaccion transaccion;

    public AudBusqTitulo() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="AUD_BUSQ_TITULO_ID", unique=true, nullable=false)
	public long getAudBusqTituloId() {
		return this.audBusqTituloId;
	}

	public void setAudBusqTituloId(long audBusqTituloId) {
		this.audBusqTituloId = audBusqTituloId;
	}


	@Column(name="NOMAPE_RAZSOC", length=100)
	public String getNomapeRazsoc() {
		return this.nomapeRazsoc;
	}

	public void setNomapeRazsoc(String nomapeRazsoc) {
		this.nomapeRazsoc = nomapeRazsoc;
	}


	@Column(name="NUM_DOC", length=11)
	public String getNumDoc() {
		return this.numDoc;
	}

	public void setNumDoc(String numDoc) {
		this.numDoc = numDoc;
	}


	@Column(nullable=false, length=1)
	public String getRol() {
		return this.rol;
	}

	public void setRol(String rol) {
		this.rol = rol;
	}


	@Column(name="TPO_PERSONA", nullable=false, length=1)
	public String getTpoPersona() {
		return this.tpoPersona;
	}

	public void setTpoPersona(String tpoPersona) {
		this.tpoPersona = tpoPersona;
	}


	//bi-directional many-to-one association to TmDocIden
    @ManyToOne
	@JoinColumn(name="TIPO_DOC_ID")
	public TmDocIden getTmDocIden() {
		return this.tmDocIden;
	}

	public void setTmDocIden(TmDocIden tmDocIden) {
		this.tmDocIden = tmDocIden;
	}
	

	//bi-directional many-to-one association to Transaccion
    @ManyToOne
	@JoinColumn(name="TRANS_ID", nullable=false)
	public Transaccion getTransaccion() {
		return this.transaccion;
	}

	public void setTransaccion(Transaccion transaccion) {
		this.transaccion = transaccion;
	}
	
}